package com.ocom.common.request.xfrecde;


import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class  DeptReportVo {
    Long deptId;
    String deptName;
    String sTime;
    String mealNo;
    Integer allAmount=0;
    Integer allDiscount=0;
    Integer allRealAmount=0;
    Integer allTimes=0;
    Integer dkAmount=0;
    Integer dkTimes=0;
    Integer xjAmount=0;
    Integer btAmount=0;
    Integer yhqAmount=0;
    Integer xnzhTimes=0;
    Integer jcAmount=0;
    Integer jcTimes=0;

    Long grade;
    Long parentDeptID;

    List<DeptMealVO> deptMealVOList=new ArrayList<>();

    @Data
    public static class DeptMealVO {
        String mealNo;
        String mealName;
        Integer amount=0;

        public void setAmount(Integer amount) {
            this.amount = -amount;
        }

        Integer discount=0;
        Integer realAmount=0;
        Integer times =0;

        public void addToAmount(Integer val) {
            this.amount -= val;
        }
        public void addToDiscount(Integer val) {
            this.discount += val;
        }
        public void addToRealAmount(Integer val) {
            this.realAmount -= val;
        }
        public void addToTimes(Integer val) {
            this.times += val;
        }

    }


    public void addToAllAmount(Integer val) {
        this.allAmount -= val;
    }
    public void addToAllDiscount(Integer val) {
        this.allDiscount += val;
    }
    public void addToAllRealAmount(Integer val) {
        this.allRealAmount -= val;
    }
    public void addToAllTimes(Integer val) {
        this.allTimes += val;
    }
    public void addToDkAmount(Integer val) {
        this.dkAmount += val;
    }
    public void addToDkTimes(Integer val) {
        this.dkTimes += val;
    }
    public void addToXjAmount(Integer val) {
        this.xjAmount += val;
    }
    public void addToBtAmount(Integer val) {
        this.btAmount += val;
    }
    public void addToYhqAmount(Integer val) {
        this.yhqAmount += val;
    }
    public void addToXnzhTimes(Integer val) {
        this.xnzhTimes += val;
    }
    public void addToJcAmount(Integer val) {
        this.jcAmount += val;
    }
    public void addToJcTimes(Integer val) {
        this.jcTimes += val;
    }

}
